#include <iostream>
int main()
{ 	
	int a[10],b,n,i,k=0;
	std::cout<<"n=";std::cin>>n;
	for(i=0;i<n;i++)
		std::cin>>a[i];
	std::cout<<"Sirul este: ";
	for(i=0;i<n;i++)
		std::cout<<a[i]<<" ";
	std::cout<<"\nDati numarul cautat: ";std::cin>>b;
	for(i=0;i<n;i++)	
		if (b==a[i])
  			k=1;
	if(k==1)
		std::cout<<"Caracterul "<<b<<" apartine sirului ";
	else
  		std::cout<<"Caracterul "<<b<<" nu apartine sirului\n";
	return 0;
}
